70fe2c9b379234687cd787bd517b95875cae6f83,jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/JCloudsSlaveTemplate.java,DescriptorImpl,listImages,#String#String#String#String#,654

Before Change



        private Set<? extends Image> listImages(String providerName, String cloudCredentialsId, String endPointUrl, String zones) {
            // Remove empty text/whitespace from the fields.
            providerName = Util.fixEmptyAndTrim(providerName);
            endPointUrl = Util.fixEmptyAndTrim(endPointUrl);
            zones = Util.fixEmptyAndTrim(zones);
            ComputeService computeService = null;

            try {
                computeService = JCloudsCloud.ctx(providerName, cloudCredentialsId, endPointUrl, zones).getComputeService();
                return computeService.listImages();
            } finally {
                if (computeService != null) {

After Change


        private Set<? extends Image> listImages(String providerName, String cloudCredentialsId, String endPointUrl, String zones) {
            ComputeService computeService = null;
            try {
                computeService = getComputeService(providerName, cloudCredentialsId, endPointUrl, zones);
                return computeService.listImages();
            } finally {
                if (computeService != null) {